package org.anyin.gitee.cloud.center.upms.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.anyin.gitee.cloud.center.upms.model.SysMenu;
import org.anyin.gitee.cloud.center.upms.model.ext.SysMenuExt;
import org.anyin.gitee.cloud.lib.core.web.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenuExt> page(Page<SysMenuExt> page, SysMenuExt entity);

    SysMenu getByMenuCode(@Param("menuCode") String menuCode);

    List<SysMenu> getByParentMenuCode(@Param("parentMenuCode") String parentMenuCode);

    SysMenu getByPermission(@Param("permission") String permission);
}
